package SqList;

import java.util.Scanner;

public class Person implements Comparable<Person>{
    private String name;
    private String sex;
    private int age;

    public Person(String name, String sex, int age) {
        this.name = name;
        this.sex = sex;
        this.age = age;
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", age=" + age +
                '}';
    }


    @Override
    public int compareTo(Person o) {
        return this.age - o.age;
    }
}

class Matrix {
    static Scanner reader;
    int row;
    int column;
    int[][] matrix;

    public Matrix(int row, int column) {
        matrix = new int[row][column];
    }

    public void inputMatrix() {
        this.row = reader.nextInt();
        this.column = reader.nextInt();
    }
}
